home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 12 / Amiga Format AFCD12 (Apr 1997, Issue 96).iso / -in_the_mag- / html_tutorial / makefile < prev    next >
Makefile  |  1997-01-21  |  1KB  |  50 lines

  1. # Makefile for CGI scripts
  2.  
  3. # Location of CGI directory
  4. CGI_DIRECTORY = /usr/local/etc/httpd/cgi-bin/mas
  5.  
  6. CPP= g++ 
  7.  
  8. # CPPFLAGS, compile flags for the C++ compeler
  9.  
  10. CPPFLAGS= -O2
  11.  
  12. all: mas_rec mas_try mas_cgi mas_env mas_form mas_run mas_view mas_cvo.o
  13.  
  14. mas_cvo.o: mas_cvo.cpp
  15.     $(CPP) $(CPPFLAGS) -c mas_cvo.cpp
  16.  
  17. mas_rec: mas_rec.cpp mas_cvo.o
  18.     $(CPP) $(CPPFLAGS) -o mas_rec mas_rec.cpp mas_cvo.o
  19.  
  20. mas_try: mas_try.cpp
  21.     $(CPP) $(CPPFLAGS) -o mas_try mas_try.cpp
  22.  
  23. mas_cgi: mas_cgi.cpp mas_cvo.o
  24.     $(CPP) $(CPPFLAGS) -o mas_cgi mas_cgi.cpp mas_cvo.o
  25.  
  26. mas_env: mas_env.cpp
  27.     $(CPP) $(CPPFLAGS) -o mas_env mas_env.cpp
  28.  
  29. mas_form: mas_form.cpp mas_cvo.o
  30.     $(CPP) $(CPPFLAGS) -o mas_form mas_form.cpp mas_cvo.o
  31.  
  32. mas_run:  mas_run.cpp mas_cvo.o
  33.     $(CPP) $(CPPFLAGS) -o mas_run mas_run.cpp mas_cvo.o
  34.  
  35. mas_view:
  36.     $(CPP) $(CPPFLAGS) -o mas_view mas_view.cpp
  37.  
  38. clean:
  39.     rm -f mas_rec mas_try mas_cgi mas_env mas_form mas_run mas_view \
  40.               mas_cvo.o
  41.  
  42. install:
  43.     cp mas_rec $(CGI_DIRECTORY)/mas_rec
  44.     cp mas_try $(CGI_DIRECTORY)/mas_try
  45.     cp mas_cgi $(CGI_DIRECTORY)/mas_cgi
  46.     cp mas_env $(CGI_DIRECTORY)/mas_env
  47.     cp mas_form $(CGI_DIRECTORY)/mas_form
  48.     cp mas_run $(CGI_DIRECTORY)/mas_run
  49.     cp mas_view $(CGI_DIRECTORY)/mas_view
  50.